{extend name="wap/default_new/base" /}
{block name="resources"}
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/control_type.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/goods_list.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/group_buy.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/spelling_list.css">
<style type="text/css">
.custom-search-button{top: 1px;}
.sliding {overflow-y: auto;background: #ffffff;}
.sliding::-webkit-scrollbar {display: none;}
.sliding ul {white-space: nowrap;text-align: center;}
.sliding ul li {padding: 10px 10px 0 10px;display: inline-block;background: #ffffff;border-right: 2px solid #f8f8f8;width:25%;}
.sliding ul li img{width:60px;height:60px;}
.members_goodspic{border-bottom:1px solid #f3f3f3;}
.info p.goods-title{padding-top:5px;}
.info p.goods-price{margin:0;margin-bottom:8px;}
.info .goods-info .goods_price{float: none;}
.controltype{height:35px;margin:0;width:100%;line-height:32.5px;}
.controltype>.control_l_content{top:0;background: none;}
.info p.goods-price>em{font-size:12px;font-weight:bold;color:#f23030;}
.popup{background: none;padding:0;}
.code{width: 60%;margin: 0 auto;background: #fff;border-radius: 13px;}
.controltype>.control_l_content {width: 22%;left:39%;display: inline-block;background:#F3F5F7;}
.members_goodspic>ul>li.gooditem>div.info {margin-top: 0;height: 70px;}
.com-content{min-height:600px;}
.category_name{height: 30px;line-height: 30px;padding: 5px 10px;background: #fff;}
.imgs{height:150px;}
.floor{margin-top:10px;}
.floor-right-nav{float:right;font-size:12px;color:#FF4E00;font-weight:bold;}
.floor-left-nav{float:left;font-size:15px;}
.floor .members_goodspic ul li:nth-child(1),.floor .members_goodspic ul li:nth-child(2){margin-top:0;}
.floor .category_name{border-bottom:1px solid #eee;}
i.title-border{display: inline-block;width: 3px;height: 20px;vertical-align: middle;margin-right: 5px;margin-top: -3px;}
i.goods_tab{font-style: normal;font-size: 12px!important;;background: #f44;color: #fff;padding: 1px 3px;margin-right: 2px;border-radius: 2px;font-weight: normal!important;}
i.shipping_fee{font-style: normal;font-size: 12px!important;;background: #fff;color: #f44;padding: 1px 3px;margin-left: 5px;border-radius: 2px;border:1px solid #f44;display: inline-block;line-height: 1!important;font-weight: normal!important;}
	.bottom{display: none;}
</style>
{/block}

{block name="goodsHead"}
<!-- 标识：是否显示顶部关注  0：[隐藏]，1：[显示]-->
{if condition="$is_subscribe == 1"}
<div class="fixed-focus-on">
	<i class="close" onclick="$('.fixed-focus-on').hide();">x</i>
	<div class="foucs-on-block">
		<div class="foucs-block">
		{if condition="$source_img_url != ''"}
			<img class="user-bg" src="{:__IMG($source_img_url)}">
			{else/}
			<img class="user-bg" src="{:__IMG($web_info['web_wechat_share_logo'])}">
		{/if}
		</div>
		{if condition="$source_user_name != ''"}
		<p>{:lang("i_am_your_best_friend")}<span>{$source_user_name}</span>,{:lang("recommended_to_you_business_from_now")}</p>
		{else/}
		<p>{:lang("you_are_not_currently_concerned_about_the_WeChat_public_account")}，{:lang("click_on_the_attention")}</p>
		{/if}
		<button id="subscribe">{:lang("click_on_the_attention")}</button>
	</div>
</div>
{/if}

<!-- 遮罩层 -->
<div class="shade" style="position:fixed;top:0px;left:0;width:100%;height:100%;margin-top:0;background: rgba(0, 0, 0, 0.7);z-index: 999;display:none;"><span style="float: right; padding: 15px;font-size: 22px;color: #fff;background: transparent;" id="close">X</span></div>
<!-- 弹出层 --> 
<div class="popup" style="position:fixed;top: 36%;left: 0;width: 100%;height: 100%;margin-left:0;display:none;">
	<div class="code">
		<div style="overflow: hidden;">
			<img src="{:__IMG($web_info.web_qrcode)}"  style="max-width: 100%;margin-top: 10px;"/>
			<div style="color:#666; margin-bottom: 10px;">{:lang("press_two_dimensional_code_public_concern_WeChat")}</div>
		</div>
	</div>
</div>
{/block}

{block name="main"}
{include file='wap/default_new/share'/}

<div class="com-content">
<!-- 轮播图 -->
	<!-- 轮播图 -->
	{include file='wap/default_new/Shop/ShopControlSlide'/}

	<!-- 优惠券领取 -->
	{if condition="!empty($coupon_list)"}
	{include file='wap/default_new/Index/controlCoupon'/}
	{/if} 

	<!-- 游戏入口 -->
	{if !empty($gameList["data"])}
		{include file='wap/default_new/Index/controlPromotionGame'/}
	{/if}
	<!-- <{include file="wap/default_new/Index/controlFigureAdv"/}> -->

	{if condition="!empty($discount_list)"}
	{include file='wap/default_new/Index/controlDiscount'/}
	{/if}
	
	{if condition="$is_support_pintuan == 1"}
	{niu:gettuangougoodslist  name="list" page="1" num="5" where="npg.is_open=1 and npg.is_show=1 and npg.shop_id=$shop_id" order="npg.create_time desc"}
	{if condition="$list.data"}
	<div class="spelling-block">
		<header>
			<h3>拼团推荐</h3>
			<a href="{:__URL('APP_MAIN/goods/spellingGroupZone?shop_id='.$shop_id)}">查看更多</a>
		</header>
		<ul>
			{foreach name="$list.data" item="vo" key="k"}
			<li onclick="location.href='{:__URL('APP_MAIN/goods/goodsdetail?id='.$vo.goods_id)}'">
				<div>
					<img src="{:__IMG($default_goods_img)}" class="lazy_load pic" data-original="{:__IMG($vo.pic_cover_mid)}">
				</div>

				<footer>
					<p>{$vo.goods_name}</p>
					<div>
						<span class="tuangou-money">￥{$vo.tuangou_money}</span><br>
						<span class="original-money">单买价&nbsp;{$vo.promotion_price}元</span>
						<button>去拼单&nbsp;&gt;</button>
					</div>
				</footer>
			</li>
			{/foreach}
		</ul>
	</div>
	{/if}
	{/niu:gettuangougoodslist}
	{/if}
	<!-- 首页公告下方广告位 -->
	{notempty name="$index_adv_one"}
	{if condition="$index_adv_one['is_use'] eq 1"}
		{if condition="$index_adv_one['adv_list'][0]['adv_image'] neq ''"}
		<div class="common_image">
			<a href="{$index_adv_one['adv_list'][0]['adv_url']}"><img src="{:__IMG($index_adv_one['adv_list'][0]['adv_image'])}" alt="" class="img_common"></a>
		</div>
		{/if}
	{/if}
	{/notempty}

{/block}
{block name="javascript"}
<script>

</script>
{/block}